package yatan.cluster;

import java.util.Scanner;

public class MasterNodeConsole {
    public static void main(String[] args) throws Exception {
        MasterNode masterNode = new MasterNode();
        masterNode.start();

        Scanner scanner = new Scanner(System.in);
        String command = scanner.nextLine().trim();
        while (true) {
            if (command.equals("stop")) {
                masterNode.stop();
                break;
            }

            command = scanner.nextLine().trim();
        }
    }
}
